﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZSZ.Iservice;
using ZSZ.Service.Entity;

namespace ZSZ.Service
{
    public class AdminLogService : IAdminLogService
    {
        public void AddNew(long adminUserId, string message)
        {
            using (ZSZDBcontext zs = new ZSZDBcontext())
            {
                AdminLogEntity log = new AdminLogEntity { AdminUserId = adminUserId, Msg = message };
                zs.AdminLogs.Add(log);
                zs.SaveChanges();
            }
        }
    }
}
